using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Pheonix.Fashionzoomer.BLL;
using Pheonix.CodeLibrary;
using Pheonix.CodeLibrary.Web;
using Pheonix.Fashionzoomer.Entity.SqlServer2000;
using System.Collections.Generic;
using Pheonix.CodeLibrary.Data;

public partial class index : BasePage
{
    public string termsText;

    protected void Page_Load(object sender, EventArgs e)
    {
        Title = SiteName + " - Home";

        if (!IsPostBack)
        {
            LoadData();
        }
    }

    private void LoadData()
    {
        CustomCollection<Product> featuredProducts = ProductManager.GetFeaturedProducts();
        featuredProductList.DataSource = featuredProducts;
        featuredProductList.DataBind();

        CustomCollection<Shop> featuredShops = ShopManager.GetFeaturedShops();
        featuredShopList.DataSource = featuredShops;
        featuredShopList.DataBind();
    }    
}
